package com.jrx.anytxn.transaction.mapper.ext;

import com.jrx.anytxn.transaction.entity.TlCollectionLoanList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExtTlCollectionLoanListMapper {

    /**
     * 查询所有记录
     *
     * @return
     */
    List<TlCollectionLoanList> selectAll();

    /**
     * 根据订单号 租户号查询 催收准备表
     * @param loanId
     * @param tenantId
     * @return
     */
    TlCollectionLoanList selectByLoanIdAndTenantId(@Param("loanId")String loanId, @Param("tenantId") String tenantId);

    /**
     * 判断订单号是否存在
     * @param loanId
     * @return
     */
    TlCollectionLoanList selectByLoanId(@Param("loanId")String loanId);

    /**
     * 批量入库
     * @param items
     * @return
     */
    int batchInsert(List<TlCollectionLoanList> items);

    int batchDeleteByLoanId(@Param("outList")List<String> outList);
}
